﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Spencen.Mobile.UI.Commanding
{
    public class DelegateCommand : ICommand
    {
        private Action _onExecute;

        public DelegateCommand( Action onExecute )
        {
            _onExecute = onExecute;
        }

        #region ICommand Members

        public void Execute()
        {
            _onExecute();
        }

        #endregion
    }
}
